import axios from 'axios'

export function getAppInfo() {
    return new Promise((resolve, reject) => {
        axios({
            url: '/api/lc-sso/getAppInfo',
            method: 'get'
        }).then(res => resolve(res))
    })
}

export function checkTicket(ticket) {
    return new Promise((resolve, reject) => {
        axios({
            url: '/api/lc-sso/checkTicket',
            method: 'get',
            params: {
                ticket
            }
        }).then(res => resolve(res))
    })
}

export function logout(userId) {
    return axios({
        url: '/api/lc-sso/logout',
        method: 'get',
        params: {
            userId
        }
    })
}
